package com.khyr.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
=======
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 评论表
>>>>>>> origin/master
 * @TableName sys_comment
 */
@TableName(value ="sys_comment")
@Data

public class Comment implements Serializable {
    @TableId
    private Integer id;

    private Integer valueId;

    private Integer type;

    private String content;

    private String adminContent;

    private String parentId;

    private Integer hasPicture;

    private String picUrls;

    private Integer star;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;

    private Date updateTime;
    @TableLogic
    private Integer deleted;
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private String name;

    private static final long serialVersionUID = 1L;

}